import request from '@/utils/request'
export function getUserInfo (params) {
  return request({
    url: '/ygbx/user/getUserByAccount',
    method: 'post',
    data: params
  })
}

export function getProductList () {
  return request({
    url: '/ygbx/product/get/select',
    method: 'post'
  })
}

// 保险产品明细
export function getProductById (params) {
  return request({
    url: '/ygbx/product/listProductDetail',
    method: 'post',
    data: params
  })
}

// 录单
export function submitData (params) {
  return request({
    url: '/ygbx/product/submit',
    method: 'post',
    data: params
  })
}

// 获取订单
export function getOrderList (params) {
  return request({
    url: '/ygbx/order/listOrderAPP',
    method: 'post',
    data: params
  })
}

// 根据id获取订单详情
export function getOrderById (params) {
  return request({
    url: '/ygbx/order/orderById',
    method: 'post',
    data: params
  })
}

// 发送保单
export function sendPolicy (params) {
  return request({
    url: '/ygbx/order/sendPolicy',
    method: 'post',
    data: params
  })
}

// 发送发票
export function sendInvoice (params) {
  return request({
    url: '/ygbx/order/sendInvoice',
    method: 'post',
    data: params
  })
}

// 重新提交
export function resubmitData (params) {
  return request({
    url: '/ygbx/order/reSubmitOrder',
    method: 'post',
    data: params
  })
}
